﻿using ERPPublic;
using ProcurementManagement.Domain.Dtos;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProcurementManagement.Domain.ProcurementDomain
{
    /// <summary>
    /// 采购申请信息表
    /// </summary>
    [SugarTable("ProcureApply")]
    public class ProcureApply : Audit
    {
        /// <summary>
        /// 采购申请id
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)] // 主键和自增
        public int ProcureApplyId { get; set; }
        /// <summary>
        /// 单据编号
        /// </summary>
        public string? PANumber { get; set; }
        /// <summary>
        /// 来源单据类型
        /// </summary>
        public string? PADocumentsType { get; set; }
        /// <summary>
        /// 采购申请类别
        /// </summary>
        public string? PAApplicationType { get; set; }
        /// <summary>
        /// 是否需要询价，通常用 0 表示不需要，1 表示需要
        /// </summary>
        public int? IsPAInquiry { get; set; }
        /// <summary>
        /// 来源单据
        /// </summary>
        public string? PADocuments { get; set; }

        /// <summary>
        /// 单据主题
        /// </summary>
        public string? PAApplyMotif { get; set; }
        /// <summary>
        /// 询价状态
        /// </summary>
        public int? PAEnquiryState { get; set; }
        /// <summary>
        /// 采购状态
        /// </summary>
        public int? PAPurchaseState { get; set; }
        /// <summary>
        /// 制单日期
        /// </summary>
        public DateTime ? Dates { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string ? Efforts { get; set; }
        /// <summary>
        /// 单据编号
        /// </summary>
        public string? PANumbers { get; set; }

    }
    public class ProcureApplyPage
    {
        public int PageLast { get; set; }
        public int SumCount { get; set; }
        public List<ProcureApplySelectDto> list { get; set; }
    }
}
